package ascript.utilities
{
	//#########################
	// Header Includes
	//#########################
	import flash.media.Sound;
	
	//#########################
	// SoundQueued Class
	//#########################
	public class SoundQueued extends Sound
	{
		//=========================
		// Variables
		//=========================
		public var sound:Sound;
		public var soundLoops:int;
		public var soundChannelRange:PointSimple;
		public var soundIsForced:Boolean;
		public var soundIsDeleted:Boolean;
		
		//=========================
		// Constructors
		//=========================	
		public function SoundQueued( tSound:Sound, tLoop:uint, tChannelRange:PointSimple, tIsForced:Boolean = false ):void
		{
			soundIsDeleted = false;
			sound = tSound;
			soundLoops = tLoop;
			soundChannelRange = tChannelRange;
			soundIsForced = tIsForced;
		}
		
		public function clone():SoundQueued
		{
			return new SoundQueued( sound, soundLoops, soundChannelRange, soundIsForced );
		}
	}
}